/**
 * Created by xuzhihan on 17/3/14.
 */
public class second {
    public static void main(String[] args) {
        int[] x= new int[10000];
        //x[0]=0;
        int a=1;
        int k=0;
        for(int i=1;i<=52;) {
            int n = (int) (Math.random() * 52);
            x[a] = n;


            k=0;
            for (int j = 0; j < a; j++) {
                if(x[j]==x[a]){
                    k=1;
                }}
                if(k!=1){
                    i++;

                    if(n<=13){
                        System.out.printf("桃%d ",n);
                    }
                    if(n<=26&&n>13){
                        System.out.printf("砖%d ",n-13);
                    }
                    if(n>26&&n<=39){
                        System.out.printf("梅%d ",n-26);
                    }
                    if(n>39&&n<=52){
                        System.out.printf("心%d ",n-39);
                    }
                }//System.out.printf("%d",i);



            }
            a++;

        }
    }


